package com.pjnkj.thunder.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author pjnkj
 * @since 2022-02-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("orderverify")
@ApiModel(value = "Orderverify对象", description = "")
public class Orderverify extends Model<Orderverify> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "账号姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "订单编号")
    @TableField("ordernumber")
    private String ordernumber;

    @ApiModelProperty(value = "实付款")
    @TableField("money")
    private String money;

    @JSONField(serialize = false)
    @TableField("taskid")
    private Integer taskid;

    @TableField("orderid")
    private Integer orderid;

    @JSONField(serialize = false)
    @TableField("shopid")
    private Integer shopid;

    @JSONField(serialize = false)
    @TableField(value = "createTime", fill = FieldFill.INSERT)
    private Date createTime;

    @JSONField(serialize = false)
    @TableField(value = "lastModifiedTime", fill = FieldFill.INSERT_UPDATE)
    private Date lastModifiedTime;

    @TableField("img1")
    private String img1;

    @TableField("img2")
    private String img2;

    @TableField("img3")
    private String img3;

    @JSONField(serialize = false)
    @TableField("deleted")
    @TableLogic
    private Integer deleted;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
